<%@ page import="java.util.List" %>
<%@ page import="com.workmanager.bean.WorkBean" %><%--
  Created by IntelliJ IDEA.
  User: haocongshun
  Date: 2016/8/25
  Time: 14:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    List<WorkBean> listWork = (List<WorkBean>) request.getAttribute("work");
%>
<%@include file="../inc/top.jsp"%>
<div class="king-page-box">
    <div class="king-container clearfix">
        <div class="ui-ui" style="position: relative; z-index: 0;">
            <div class="panel panel-default mb0">
                <div class="panel-heading">
                    个人中心
                </div>
                <div class="panel-body">
                    <h3>亲爱的老师，<%=(listWork.size()==0?"最近你还未收到作业！":"以下为你最近收到的作业！")%></h3>
                    <div class="ui-ui" style="position: relative; z-index: 0;">
                        <ul class="list-group">
                            <%
                                for(WorkBean wb : listWork){
                            %>
                            <li class="list-group-item">
                                <span class="badge king-info"><a href="<%=ctxpath%>/teacherWorkController/workDetail.wm?id=<%=wb.getJobTask_id()%>" style="font-size: 14px;color: white">点击查看</a></span>
                                <i class="fa fa-calendar"></i> <span>在<%=(wb.getWork_date().substring(0,wb.getWork_date().length()-2))%>学生:<%=wb.getaStudent().getStudent_name()%>提交了“<%=wb.getWork_title()%>”</span>
                            </li>
                            <%
                                }
                            %>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<%@include file="../inc/bottom.jsp"%>
